package com.chuangjiangx.member.manager.client.web.stored.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author cj-ch
 * @date 2018/4/4 下午3:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "会员卡(c扫b)快捷支付请求参数")
public class MbrCtobQuickPayRequest {

    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    @NotNull
    @Min(value = 1)
    private Long memberId;

    /**
     * 付款金额
     */
    @NotNull
    @ApiModelProperty(value = "付款金额")
    @DecimalMin(value = "0.01",message = "付款金额不能小于0.01元")
    private BigDecimal amount;

    /**
     * 支付终端
     */
    @ApiModelProperty(value = "支付终端")
    @NotNull(message = "退款终端不能为null")
    private Integer payTerminal;


    /**
     * 卡券核销码
     */
    @ApiModelProperty(value = "卡券核销码,非必填")
    @Size(min = 13,max = 13,message = "卡券核销码长度为13位")
    private String couponCode;


}
